#include<stdio.h>
#define max(a,b,c) ((a>b?a:b)>c?(a>b?a:b):c)
#define min(a,b,c) ((a<b?a:b)<c?(a<b?a:b):c)
int main()
{
	int a,b,c,Max,Min,Med;
	scanf("%d%d%d",&a,&b,&c);
	Max=max(a,b,c);
	Min=min(a,b,c);
	Med=(a+b+c)-Max-Min;
	printf("%d %d %d \n",Min,Med,Max);
	
}
